luci-app-smartdns: explicitly require `view` class
authorJo-Philipp Wich <[email protected]>
Fri, 8 Oct 2021 17:55:39 +0000 (19:55 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 8 Oct 2021 17:55:39 +0000 (19:55 +0200)
Signed-off-by: Jo-Philipp Wich <[email protected]>
applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js

index 549482b469f5f156a18dacb8e7636688d5c49c35..da0b9744201c4f112f2255640e12570e32cf8c88 100644 (file)
@@ -22,6 +22,7 @@
 'require uci';
 'require form';
 'require rpc';
+'require view';
 
 var conf = 'smartdns';
 var callServiceList = rpc.declare({
@@ -115,7 +116,7 @@ function smartdnsRenderStatus(res) {
        return renderHTML;
 }
 
-return L.view.extend({
+return view.extend({
        load: function () {
                return Promise.all([
                        uci.load('smartdns'),